﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="ms-design-extensionType" content="Search" />
    <title>Search Contract</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    <link href="/css/default.css" rel="stylesheet" />
    <link href="/pages/searchresultbykeyword/searchresults.css" rel="stylesheet" />
    <script src="/js/data.js"></script>
</head>
<body>
    <div id="jobOffersTemplate" class="itemtemplate" data-win-control="WinJS.Binding.Template">
        <div class="item-wrapper-jobOffer">
            <a class="viewInJobTiger" href="#" data-win-bind="href: link; innerText: title"></a>
            <span class="offerContent" data-win-bind="innerHTML: content"></span>
        </div>
    </div>

    <!-- The content that will be loaded and displayed. -->
    <div class="searchresults fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <div class="titlearea">
                <h1 class="pagetitle win-type-ellipsis">Резултати за: <span data-win-bind="innerText: searchQuery.queryText"></span></h1>
                <h2 class="pagesubtitle win-type-ellipsis"></h2>
            </div>
        </header>
        <section aria-label="Main content" role="main">

            <div id="jobOffers" class="resultslist win-selectionstylefilled" data-win-control="WinJS.UI.ListView" data-win-options="{
                  itemDataSource: ViewModels.searchJobOffers.dataSource,
                  itemTemplate: select('#jobOffersTemplate')
                }">
            </div>
        </section>
    </div>
    <div id="scenarioAppBar" data-win-control="WinJS.UI.AppBar">
        <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdBack',label:'Назад',icon:'back', section:'selection',tooltip:'Назад'}"></button>
        <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdHome',label:'Начало',icon:'home', section:'selection', tooltip:'Покажи начална страница'}"></button>
        <hr data-win-control="WinJS.UI.AppBarCommand" data-win-options="{type:'separator',section:'selection',extraClass:'multiSelect'}" />
        <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdLoadInfo',label:'Покажи Информация',icon:'list',section:'selection', tooltip:'Покажи повече инфомация за избраните елементи'}"></button>
    </div>
</body>
</html>
